<div id="mainContent">
		<div class="content">
			<h3>MES GROUPES :</h3>
			<div class="grp">
				<a href="index.php?control=groupe&action=create"><input type="button" value="Créer un groupe"/></a>
			</div>
			<div class="groupes">
			<?php foreach($params['groupes'] as $group) {?>
			<h4><img src="images/groups.png" alt=""/><?php echo $group->getNomGroupe(); ?></h4>
			<div class="grp">
				<?php foreach($group->getMembresGroupe() as $user) {
					if($params['user']->getId()!=$user->getId()) {
					?>
					
					<div class="user">
						<form name="" method="post" action="#">
						<input type="submit" name="DELETE" value="x" class="closeBtn"/>
						<a href="index.php?control=user&action=profil&args[]=<?php echo $user->getId(); ?>">
						<img src="photos/<?php echo (file_exists("photos/".$user->getId().".jpg")) ? $user->getId().".jpg" : "noimage.png";
						?>" alt="" title="<?php echo $user->getPseudo();?>"/></a>
						<p><?php echo $user->getPseudo(); ?></p>
						
						<input type="hidden" name="IDGROUPE" value="<?php echo $group->getGroupeId(); ?>"/>
						<input type="hidden" name="IDUSER" value="<?php echo $user->getId(); ?>"/>
						</form>
					</div>
					
					
				<?php } ?>
				
				
				<?php } ?>
				<div class="option">
					<input type="button" name="ADDMEMBER" value="Ajouter à ce groupe"/>
					<div class="dialog">
						<form name="formUser<?php echo $group->getGroupeId(); ?>" method="post" action="#">
							<input type="text" name="search" placeholder="Rechercher un membre"/>
							<div class="selectUser">
							
							<?php foreach($params['allUsers'] as $anUser) {?>
								<div class="user">
									<img src="photos/<?php echo (file_exists("photos/".$anUser->getId().".jpg")) ? $anUser->getId().".jpg" : "noimage.png";?>" alt="" title="<?php ?>">
									<input type="checkbox" name="USERS[]" value="<?php echo $anUser->getId(); ?>"/>
									<p><?php echo $anUser->getPseudo();?></p>
								</div>
							<?php }?>
								
							</div>
							<input type="hidden" name="IDGROUPE" value="<?php echo $group->getGroupeId(); ?>"/>
							<input type="submit" name="ADDUSER" value="Ajouter les membres sélectionnés"/>
							<a href="index.php?control=groupe&action=view"><input type="button" name="CANCEL" value="Annuler"/></a>
						</form>
					</div>
				</div>
			</div>
			<?php } ?>
			</div>
		</div>
	</div>